package com.ssm.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class HpOrderscommentExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public HpOrderscommentExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andOcidIsNull() {
            addCriterion("ocId is null");
            return (Criteria) this;
        }

        public Criteria andOcidIsNotNull() {
            addCriterion("ocId is not null");
            return (Criteria) this;
        }

        public Criteria andOcidEqualTo(Integer value) {
            addCriterion("ocId =", value, "ocid");
            return (Criteria) this;
        }

        public Criteria andOcidNotEqualTo(Integer value) {
            addCriterion("ocId <>", value, "ocid");
            return (Criteria) this;
        }

        public Criteria andOcidGreaterThan(Integer value) {
            addCriterion("ocId >", value, "ocid");
            return (Criteria) this;
        }

        public Criteria andOcidGreaterThanOrEqualTo(Integer value) {
            addCriterion("ocId >=", value, "ocid");
            return (Criteria) this;
        }

        public Criteria andOcidLessThan(Integer value) {
            addCriterion("ocId <", value, "ocid");
            return (Criteria) this;
        }

        public Criteria andOcidLessThanOrEqualTo(Integer value) {
            addCriterion("ocId <=", value, "ocid");
            return (Criteria) this;
        }

        public Criteria andOcidIn(List<Integer> values) {
            addCriterion("ocId in", values, "ocid");
            return (Criteria) this;
        }

        public Criteria andOcidNotIn(List<Integer> values) {
            addCriterion("ocId not in", values, "ocid");
            return (Criteria) this;
        }

        public Criteria andOcidBetween(Integer value1, Integer value2) {
            addCriterion("ocId between", value1, value2, "ocid");
            return (Criteria) this;
        }

        public Criteria andOcidNotBetween(Integer value1, Integer value2) {
            addCriterion("ocId not between", value1, value2, "ocid");
            return (Criteria) this;
        }

        public Criteria andOccountIsNull() {
            addCriterion("ocCount is null");
            return (Criteria) this;
        }

        public Criteria andOccountIsNotNull() {
            addCriterion("ocCount is not null");
            return (Criteria) this;
        }

        public Criteria andOccountEqualTo(String value) {
            addCriterion("ocCount =", value, "occount");
            return (Criteria) this;
        }

        public Criteria andOccountNotEqualTo(String value) {
            addCriterion("ocCount <>", value, "occount");
            return (Criteria) this;
        }

        public Criteria andOccountGreaterThan(String value) {
            addCriterion("ocCount >", value, "occount");
            return (Criteria) this;
        }

        public Criteria andOccountGreaterThanOrEqualTo(String value) {
            addCriterion("ocCount >=", value, "occount");
            return (Criteria) this;
        }

        public Criteria andOccountLessThan(String value) {
            addCriterion("ocCount <", value, "occount");
            return (Criteria) this;
        }

        public Criteria andOccountLessThanOrEqualTo(String value) {
            addCriterion("ocCount <=", value, "occount");
            return (Criteria) this;
        }

        public Criteria andOccountLike(String value) {
            addCriterion("ocCount like", value, "occount");
            return (Criteria) this;
        }

        public Criteria andOccountNotLike(String value) {
            addCriterion("ocCount not like", value, "occount");
            return (Criteria) this;
        }

        public Criteria andOccountIn(List<String> values) {
            addCriterion("ocCount in", values, "occount");
            return (Criteria) this;
        }

        public Criteria andOccountNotIn(List<String> values) {
            addCriterion("ocCount not in", values, "occount");
            return (Criteria) this;
        }

        public Criteria andOccountBetween(String value1, String value2) {
            addCriterion("ocCount between", value1, value2, "occount");
            return (Criteria) this;
        }

        public Criteria andOccountNotBetween(String value1, String value2) {
            addCriterion("ocCount not between", value1, value2, "occount");
            return (Criteria) this;
        }

        public Criteria andOctypeIsNull() {
            addCriterion("ocType is null");
            return (Criteria) this;
        }

        public Criteria andOctypeIsNotNull() {
            addCriterion("ocType is not null");
            return (Criteria) this;
        }

        public Criteria andOctypeEqualTo(Integer value) {
            addCriterion("ocType =", value, "octype");
            return (Criteria) this;
        }

        public Criteria andOctypeNotEqualTo(Integer value) {
            addCriterion("ocType <>", value, "octype");
            return (Criteria) this;
        }

        public Criteria andOctypeGreaterThan(Integer value) {
            addCriterion("ocType >", value, "octype");
            return (Criteria) this;
        }

        public Criteria andOctypeGreaterThanOrEqualTo(Integer value) {
            addCriterion("ocType >=", value, "octype");
            return (Criteria) this;
        }

        public Criteria andOctypeLessThan(Integer value) {
            addCriterion("ocType <", value, "octype");
            return (Criteria) this;
        }

        public Criteria andOctypeLessThanOrEqualTo(Integer value) {
            addCriterion("ocType <=", value, "octype");
            return (Criteria) this;
        }

        public Criteria andOctypeIn(List<Integer> values) {
            addCriterion("ocType in", values, "octype");
            return (Criteria) this;
        }

        public Criteria andOctypeNotIn(List<Integer> values) {
            addCriterion("ocType not in", values, "octype");
            return (Criteria) this;
        }

        public Criteria andOctypeBetween(Integer value1, Integer value2) {
            addCriterion("ocType between", value1, value2, "octype");
            return (Criteria) this;
        }

        public Criteria andOctypeNotBetween(Integer value1, Integer value2) {
            addCriterion("ocType not between", value1, value2, "octype");
            return (Criteria) this;
        }

        public Criteria andOcservertypeIsNull() {
            addCriterion("ocServerType is null");
            return (Criteria) this;
        }

        public Criteria andOcservertypeIsNotNull() {
            addCriterion("ocServerType is not null");
            return (Criteria) this;
        }

        public Criteria andOcservertypeEqualTo(Integer value) {
            addCriterion("ocServerType =", value, "ocservertype");
            return (Criteria) this;
        }

        public Criteria andOcservertypeNotEqualTo(Integer value) {
            addCriterion("ocServerType <>", value, "ocservertype");
            return (Criteria) this;
        }

        public Criteria andOcservertypeGreaterThan(Integer value) {
            addCriterion("ocServerType >", value, "ocservertype");
            return (Criteria) this;
        }

        public Criteria andOcservertypeGreaterThanOrEqualTo(Integer value) {
            addCriterion("ocServerType >=", value, "ocservertype");
            return (Criteria) this;
        }

        public Criteria andOcservertypeLessThan(Integer value) {
            addCriterion("ocServerType <", value, "ocservertype");
            return (Criteria) this;
        }

        public Criteria andOcservertypeLessThanOrEqualTo(Integer value) {
            addCriterion("ocServerType <=", value, "ocservertype");
            return (Criteria) this;
        }

        public Criteria andOcservertypeIn(List<Integer> values) {
            addCriterion("ocServerType in", values, "ocservertype");
            return (Criteria) this;
        }

        public Criteria andOcservertypeNotIn(List<Integer> values) {
            addCriterion("ocServerType not in", values, "ocservertype");
            return (Criteria) this;
        }

        public Criteria andOcservertypeBetween(Integer value1, Integer value2) {
            addCriterion("ocServerType between", value1, value2, "ocservertype");
            return (Criteria) this;
        }

        public Criteria andOcservertypeNotBetween(Integer value1, Integer value2) {
            addCriterion("ocServerType not between", value1, value2, "ocservertype");
            return (Criteria) this;
        }

        public Criteria andOcpricetypeIsNull() {
            addCriterion("ocPriceType is null");
            return (Criteria) this;
        }

        public Criteria andOcpricetypeIsNotNull() {
            addCriterion("ocPriceType is not null");
            return (Criteria) this;
        }

        public Criteria andOcpricetypeEqualTo(Integer value) {
            addCriterion("ocPriceType =", value, "ocpricetype");
            return (Criteria) this;
        }

        public Criteria andOcpricetypeNotEqualTo(Integer value) {
            addCriterion("ocPriceType <>", value, "ocpricetype");
            return (Criteria) this;
        }

        public Criteria andOcpricetypeGreaterThan(Integer value) {
            addCriterion("ocPriceType >", value, "ocpricetype");
            return (Criteria) this;
        }

        public Criteria andOcpricetypeGreaterThanOrEqualTo(Integer value) {
            addCriterion("ocPriceType >=", value, "ocpricetype");
            return (Criteria) this;
        }

        public Criteria andOcpricetypeLessThan(Integer value) {
            addCriterion("ocPriceType <", value, "ocpricetype");
            return (Criteria) this;
        }

        public Criteria andOcpricetypeLessThanOrEqualTo(Integer value) {
            addCriterion("ocPriceType <=", value, "ocpricetype");
            return (Criteria) this;
        }

        public Criteria andOcpricetypeIn(List<Integer> values) {
            addCriterion("ocPriceType in", values, "ocpricetype");
            return (Criteria) this;
        }

        public Criteria andOcpricetypeNotIn(List<Integer> values) {
            addCriterion("ocPriceType not in", values, "ocpricetype");
            return (Criteria) this;
        }

        public Criteria andOcpricetypeBetween(Integer value1, Integer value2) {
            addCriterion("ocPriceType between", value1, value2, "ocpricetype");
            return (Criteria) this;
        }

        public Criteria andOcpricetypeNotBetween(Integer value1, Integer value2) {
            addCriterion("ocPriceType not between", value1, value2, "ocpricetype");
            return (Criteria) this;
        }

        public Criteria andOidIsNull() {
            addCriterion("oid is null");
            return (Criteria) this;
        }

        public Criteria andOidIsNotNull() {
            addCriterion("oid is not null");
            return (Criteria) this;
        }

        public Criteria andOidEqualTo(Integer value) {
            addCriterion("oid =", value, "oid");
            return (Criteria) this;
        }

        public Criteria andOidNotEqualTo(Integer value) {
            addCriterion("oid <>", value, "oid");
            return (Criteria) this;
        }

        public Criteria andOidGreaterThan(Integer value) {
            addCriterion("oid >", value, "oid");
            return (Criteria) this;
        }

        public Criteria andOidGreaterThanOrEqualTo(Integer value) {
            addCriterion("oid >=", value, "oid");
            return (Criteria) this;
        }

        public Criteria andOidLessThan(Integer value) {
            addCriterion("oid <", value, "oid");
            return (Criteria) this;
        }

        public Criteria andOidLessThanOrEqualTo(Integer value) {
            addCriterion("oid <=", value, "oid");
            return (Criteria) this;
        }

        public Criteria andOidIn(List<Integer> values) {
            addCriterion("oid in", values, "oid");
            return (Criteria) this;
        }

        public Criteria andOidNotIn(List<Integer> values) {
            addCriterion("oid not in", values, "oid");
            return (Criteria) this;
        }

        public Criteria andOidBetween(Integer value1, Integer value2) {
            addCriterion("oid between", value1, value2, "oid");
            return (Criteria) this;
        }

        public Criteria andOidNotBetween(Integer value1, Integer value2) {
            addCriterion("oid not between", value1, value2, "oid");
            return (Criteria) this;
        }

        public Criteria andCommtimeIsNull() {
            addCriterion("commtime is null");
            return (Criteria) this;
        }

        public Criteria andCommtimeIsNotNull() {
            addCriterion("commtime is not null");
            return (Criteria) this;
        }

        public Criteria andCommtimeEqualTo(Date value) {
            addCriterion("commtime =", value, "commtime");
            return (Criteria) this;
        }

        public Criteria andCommtimeNotEqualTo(Date value) {
            addCriterion("commtime <>", value, "commtime");
            return (Criteria) this;
        }

        public Criteria andCommtimeGreaterThan(Date value) {
            addCriterion("commtime >", value, "commtime");
            return (Criteria) this;
        }

        public Criteria andCommtimeGreaterThanOrEqualTo(Date value) {
            addCriterion("commtime >=", value, "commtime");
            return (Criteria) this;
        }

        public Criteria andCommtimeLessThan(Date value) {
            addCriterion("commtime <", value, "commtime");
            return (Criteria) this;
        }

        public Criteria andCommtimeLessThanOrEqualTo(Date value) {
            addCriterion("commtime <=", value, "commtime");
            return (Criteria) this;
        }

        public Criteria andCommtimeIn(List<Date> values) {
            addCriterion("commtime in", values, "commtime");
            return (Criteria) this;
        }

        public Criteria andCommtimeNotIn(List<Date> values) {
            addCriterion("commtime not in", values, "commtime");
            return (Criteria) this;
        }

        public Criteria andCommtimeBetween(Date value1, Date value2) {
            addCriterion("commtime between", value1, value2, "commtime");
            return (Criteria) this;
        }

        public Criteria andCommtimeNotBetween(Date value1, Date value2) {
            addCriterion("commtime not between", value1, value2, "commtime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}